package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.bean.Book;
import org.example.bean.User;
import org.example.util.JsonResult;
import org.springframework.stereotype.Service;

@Service
public interface BookService extends IService<Book> {
    JsonResult findBook();

    JsonResult findBook(int page);
    JsonResult findBookById(String id);

    JsonResult findBookByname(String name,int page);
    JsonResult saveBook(Book book);
    JsonResult updateBook(Book book);
    JsonResult removeBook(String id);
    JsonResult updateBookStatus(String id,int status);
}
